


<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display"%>
<%@ taglib uri="/WEB-INF/config/tld/fmt.tld" prefix="fmt"%>
<%@ taglib uri="http://ssh.org/selects" prefix="ssh"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
	String applicationPath = basePath + "/" + "application";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title></title>
		<link href="<%=path%>/css/jinmu_style.css" rel="stylesheet"
			type="text/css" />
		<script language="javascript" src="<%=path%>/js/util.js"></script>
	</head>
	<body>

<html:form styleId="yfSmsrecordForm" action="listYfSmsrecord.do?method=getYfSmsrecordPartialList">
	<input type="hidden" id="totalPage" value="${totalPage}" />
	<table cellspacing="0" cellpadding="0" width="98%" align="center"
				border="0" class="margtb5">
				<tr>
					<td align="left" class="padl5 lan12">
						<img src="<%=path%>/images/img-11.gif" width="12" height="12"></img>
						项目管理 &gt; 发起项目
					</td>
				</tr>
			</table>
			
			
			<table cellspacing="3" cellpadding="0" width="98%" align="center"
				border="0" class="kuang2 margtb5 hei12">
				<tr>
									    <td width="10%" align="right">
						<bean:message key="com.application.yfsmsrecord.entity.yfsmsrecord.listpage.bussType" bundle="yfsmsrecord"/>：
					</td>
					<td width="15%">
						                 		                      		          <html:text property="bussType"/>
                		                                               		 					</td>
 
					  				    <td width="10%" align="right">
						<bean:message key="com.application.yfsmsrecord.entity.yfsmsrecord.listpage.bussId" bundle="yfsmsrecord"/>：
					</td>
					<td width="15%">
						                 		                      		          <html:text property="bussId"/>
                		                                               		 					</td>
 
					  				    <td width="10%" align="right">
						<bean:message key="com.application.yfsmsrecord.entity.yfsmsrecord.listpage.receNo" bundle="yfsmsrecord"/>：
					</td>
					<td width="15%">
						                 		                      		          <html:text property="receNo"/>
                		                                               		 					</td>
 
					  				    <td width="10%" align="right">
						<bean:message key="com.application.yfsmsrecord.entity.yfsmsrecord.listpage.receUser" bundle="yfsmsrecord"/>：
					</td>
					<td width="15%">
						                 		                      		          <html:text property="receUser"/>
                		                                               		 					</td>
 
					  				    <td width="10%" align="right">
						<bean:message key="com.application.yfsmsrecord.entity.yfsmsrecord.listpage.sendTime" bundle="yfsmsrecord"/>：
					</td>
					<td width="15%">
						                 		                      		          <html:text property="sendTime"/>
                		                                               		 					</td>
 
					  				    <td width="10%" align="right">
						<bean:message key="com.application.yfsmsrecord.entity.yfsmsrecord.listpage.sendContent" bundle="yfsmsrecord"/>：
					</td>
					<td width="15%">
						                 		                      		          <html:text property="sendContent"/>
                		                                               		 					</td>
 
					  				    <td width="10%" align="right">
						<bean:message key="com.application.yfsmsrecord.entity.yfsmsrecord.listpage.workitmeId" bundle="yfsmsrecord"/>：
					</td>
					<td width="15%">
						                 		                      		          <html:text property="workitmeId"/>
                		                                               		 					</td>
 
					  				    <td width="10%" align="right">
						<bean:message key="com.application.yfsmsrecord.entity.yfsmsrecord.listpage.org" bundle="yfsmsrecord"/>：
					</td>
					<td width="15%">
						                 		                      		          <html:text property="org"/>
                		                                               		 					</td>
 
					  				    <td width="10%" align="right">
						<bean:message key="com.application.yfsmsrecord.entity.yfsmsrecord.listpage.sendType" bundle="yfsmsrecord"/>：
					</td>
					<td width="15%">
						                 		                      		          <html:text property="sendType"/>
                		                                               		 					</td>
 
					  				    <td width="10%" align="right">
						<bean:message key="com.application.yfsmsrecord.entity.yfsmsrecord.listpage.operateid" bundle="yfsmsrecord"/>：
					</td>
					<td width="15%">
						                 		                      		          <html:text property="operateid"/>
                		                                               		 					</td>
 
					  				    <td width="10%" align="right">
						<bean:message key="com.application.yfsmsrecord.entity.yfsmsrecord.listpage.createDate" bundle="yfsmsrecord"/>：
					</td>
					<td width="15%">
						                 		                      		          <html:text property="createDate"/>
                		                                               		 					</td>
 
					  					<td width="12%">
						  <input  class="buttonbg"  style="cursor:hand"  id="but_query" type="button" value="<bean:message key='com.manager.common.yfsmsrecord.query'  bundle="yfsmsrecord"/>" name="but_query" onClick="query();" />
					</td>
				</tr>
				
			</table>
			
			
		   <table cellspacing="0" cellpadding="0" width="98%" align="center" border="0" class="margb5">
				<tr>
					<td colspan="8" class="bgcolor2 padlr5">
						<table border="0" cellspacing="0" cellpadding="0" class="lan13b">
							<tr>
							<td width="25" align="center"> <img src="<%=applicationPath%>/images/tianjia.gif" alt="<bean:message key='com.manager.common.yfsmsrecord.add'  bundle="yfsmsrecord"/>" height="15" width="15" /></td>
					        <td class="lieb-zi" width="40">
						<a href="#" onClick="addYfSmsrecord();" ><bean:message key='com.manager.common.yfsmsrecord.add'  bundle="yfsmsrecord"/>
						</a>
					</td>
					<td width="25" align="center">
						<img src="<%=applicationPath%>/images/bianji.gif" alt="<bean:message key='com.manager.common.yfsmsrecord.modify'  bundle="yfsmsrecord"/>" height="15" width="15" />
					</td>
					<td class="lieb-zi" width="40">
					     <a href="#" onClick="modifyYfSmsrecord();" ><bean:message key='com.manager.common.yfsmsrecord.modify'  bundle="yfsmsrecord"/> </a>
					</td>

					<td width="25" align="center">
						<img src="<%=applicationPath%>/images/shanchu.gif" alt="<bean:message key='com.manager.common.yfsmsrecord.del'  bundle="yfsmsrecord"/>" height="15" width="15" />
					</td>
					<td class="lieb-zi" width="40">
						<a href="#" onClick="delYfSmsrecord();" ><bean:message key='com.manager.common.yfsmsrecord.del'  bundle="yfsmsrecord"/></a>
					</td>


					<td width="25" align="center">
						<img src="<%=applicationPath%>/images/chakan.gif" alt="<bean:message key='com.manager.common.yfsmsrecord.view'  bundle="yfsmsrecord"/>" height="15" width="15"/>
					</td>
					<td width="40" class="lieb-zi">
						<a href="#" onClick="view();"><bean:message key='com.manager.common.yfsmsrecord.view'  bundle="yfsmsrecord"/> </a>
					</td>
					<td class="lieb-zi">
						&nbsp;
					</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td>
			
		<fmt:bundle basename="com.application.yfsmsrecord.struts.ApplicationResources_yfsmsrecord">
		<display:table name="yfSmsrecordList" class="simple" id="yfSmsrecordTab" pagesize="15" partialList="true"   style=" width:100%;"   defaultorder="descending" size="resultSize" requestURI="listYfSmsrecord.do?method=getYfSmsrecordPartialList"  > 			       
									<display:column title="选择" sortable="false"  style=" width:5%; text-align:center;" >
			    <input type="checkbox" name="id" value="${yfSmsrecordTab.id}" headerClass="sortable"/>
			</display:column>
																																																																											
									 
                                                                                                    <display:column property="bussType" titleKey="com.application.yfsmsrecord.entity.yfsmsrecord.listpage.bussType" sortable="false" style="width:15%; text-align:center;"/>
			                          												 
                                                                                                    <display:column property="bussId" titleKey="com.application.yfsmsrecord.entity.yfsmsrecord.listpage.bussId" sortable="false" style="width:15%; text-align:center;"/>
			                          												 
                                                                                                    <display:column property="receNo" titleKey="com.application.yfsmsrecord.entity.yfsmsrecord.listpage.receNo" sortable="false" style="width:15%; text-align:center;"/>
			                          												 
                                                                                                    <display:column property="receUser" titleKey="com.application.yfsmsrecord.entity.yfsmsrecord.listpage.receUser" sortable="false" style="width:15%; text-align:center;"/>
			                          												 
                                                                                                    <display:column property="sendTime" titleKey="com.application.yfsmsrecord.entity.yfsmsrecord.listpage.sendTime" sortable="false" style="width:15%; text-align:center;"/>
			                          												 
                                                                                                    <display:column property="sendContent" titleKey="com.application.yfsmsrecord.entity.yfsmsrecord.listpage.sendContent" sortable="false" style="width:15%; text-align:center;"/>
			                          												 
                                                                                                    <display:column property="workitmeId" titleKey="com.application.yfsmsrecord.entity.yfsmsrecord.listpage.workitmeId" sortable="false" style="width:15%; text-align:center;"/>
			                          												 
                                                                                                    <display:column property="org" titleKey="com.application.yfsmsrecord.entity.yfsmsrecord.listpage.org" sortable="false" style="width:15%; text-align:center;"/>
			                          												 
                                                                                                    <display:column property="sendType" titleKey="com.application.yfsmsrecord.entity.yfsmsrecord.listpage.sendType" sortable="false" style="width:15%; text-align:center;"/>
			                          												 
                                                                                                    <display:column property="operateid" titleKey="com.application.yfsmsrecord.entity.yfsmsrecord.listpage.operateid" sortable="false" style="width:15%; text-align:center;"/>
			                          												 
                                                                                                    <display:column property="createDate" titleKey="com.application.yfsmsrecord.entity.yfsmsrecord.listpage.createDate" sortable="false" style="width:15%; text-align:center;"/>
			                          							       </display:table>
	       </fmt:bundle>
		</td>
				</tr>
			</table>

		</html:form>
	</body>
</html>
<script>

function query(){
	document.forms[0].action="listYfSmsrecord.do?method=getYfSmsrecordPartialList";
	document.forms[0].submit();
}

//新增
function addYfSmsrecord(){
    document.forms[0].action="toAddYfSmsrecord.do?method=toAddYfSmsrecord";
	document.forms[0].submit();
}

//修改
function modifyYfSmsrecord(){
    var result = validateSelect();
	if(result==0){
		alert("请选择一条记录！");
		return;
	}else if(result>1){
	        alert("一次只能编辑一条记录！");
		return;
	}else{
		document.forms[0].action="toUpdateYfSmsrecord.do?method=toUpdateYfSmsrecord";
	        document.forms[0].submit();
	}
	
}

//删除
function delYfSmsrecord()
{
	var ids = getSelectedIds('id');
	if( ids=="" )
	{
		alert("请选择一条记录！");
		return false;
	}
	if( confirm("是否要删除所选的信息？") )
	{
		document.forms[0].action="deleteYfSmsrecord.do?method=deleteYfSmsrecord&ids=" + ids;
		document.forms[0].submit();
	}
}
	
	
function validateSelect(){ 
    var count = 0;
    var jysBox = $s("id");
    for(var i=0;i<jysBox.length;i++){
		if(jysBox[i].checked){
        	count++;
		}
	}
    return count;
}

//查看
function view(){
	var result = validateSelect();
	if(result==0){
		alert("请选择一条记录！");
		return;
	}else if(result>1){
	    alert("一次只能查看一条记录！");
		return;
	}else{
		document.forms[0].action="viewYfSmsrecord.do?method=viewYfSmsrecord";
	    document.forms[0].submit();
	}
}


//全选   
function checkAll()   
{ 
  
   var chk=document.getElementsByName("id");   
   for(var i=0;i<chk.length;i++)   
   { 
     if($('checkall').checked){
     	chk(i).checked=true; 
     }else{
        chk(i).checked=false; 
     } 
       
 }
  
}   
</script>
